On a recommendation from this forum, I just used the Mobile Passport app arriving at JFK on May 22. It was at Terminal 7, rather than Terminal 1 as you will be using, but I could not believe how fast it was! Even taking some time to ask which lines to use, and taking some more time to get my passport out twice (you need your passport as well as your phone, for both the immigration step and the customs step), I still breezed through. So, if you don't have Global Entry, use this app (available for both Apple and Android).
All the other advice you have been given is accurate. You will arrive at Terminal 1, go through passport control, pick up luggage, then go through customs. You then follow signs to Airtrain, and take the one going to Howard Beach or to Jamaica (take whichever one comes first); do not take the one on the opposite platform that just goes to the airline terminals themselves. If you are confused, there should be a uniformed person to ask for help - don't hesitate to get their help. You then go to either Terminal 2 or Terminal 4 depending on where you next flight departs from (do find this out in advance). You then go into the terminal, go through security, and go to your gate.
Two and a half hours will work, IF everything goes correctly and there are no holdups. Of course, that can't be predicted.