There is not a lot of meaningful activities you can do on a <4 hour layover (without creating a stopover and subject to different fare basis) in New York City or Newark, or any other places in between/nearby, especially once you factor in time to/from airport, getting through security upon return to airport, and be at the gate at least 15 minutes prior to departure time.