If you are unable to check your bags through, there is a luggage storage facility (paid) in JFK Terminal 4 Arrivals landside, you could take the Airtrain round from T8, store your bags and then pick them up on the way back to T7 from the city in the evening.
http://www.jfkiat.com/information.html#