Just a note - EWR's inbound customs is a tragic mess of disorganization.
Give yourself LOTS of time to change planes. I don't care if it normally runs like a well oiled machine - 3.5 hours and i barely had enough time to grab a bite and run to my plane.