They probably just executed a missed approach and then were vectored for a 22L approach ... did you listen to tower? Perhaps they requested it or perhaps JFK was on a RWY change anyway. Sometimes...