Disaster averted after JFK-bound flight nearly lands on same runway as outbound aircraft