Not sure how much time this itin leaves in JFK, but unless it is a long layover I would go with AMS.
I would rather be stuck in AMS trying to get to BCN than being stuck in JFK.
I avoid JFK if possible. And if connecting in Europe I go with AMS over CDG.