When you arrive at JFK some agent before custom clearance will point you to a "fast lane" for connecting passanger. I have used it many time but it is always hit or miss at JFK. If several plan arrives at the same time it can be a mess.
however as pointed by others if you miss your connection you will be rebook for free on the next one