The plane headed for Scotland was over two hours into the journey when it turned back to JFK