I think the problem is the inbound NY flight lands at LGA and the outbound departs JFK. My suggestion was to get to JFK at leisure the day before and then only have a short trip to the terminal. You never know what can happen on the Van Wyck.