Getting to the JFK airport from the port authority bus terminal in New York City?

I have never been to New York City and am a little worried as I have never been there and all the people and traffic. I need to get to the airport in under 4 hours. Which is the simplest option? How much would a Uber or can cost?
4 answers 4