Just note that there is a lot of construction and consequent delays on the roads at JFK just now.
With that sort of time frame I would grab a day room at JFK, the HGI Queens is perfectly reasonable. Take the air train to Federal circle for the hotel shuttle.
Shower, leave bags and head back on...