If you have bags you should definitely go directly to JFK via Lyft or Uber. Once you've got rid of your bags you should then have time to grab something at the airport - Terminal 8 has quite a few places to eat after security. Regardless of the time of day the traffic between the two airports can be extremely slow and unpredictable.