That's a tough call. Chances were that you had the best hand, and in fact, you did, so in that sense you played it right. In my opinion, your philosophy tournament wise should have impacted what you did here. If you wanted to win the tournament, then you made the right move. However, if you were playing just to hang on and make the top 30, i would have just checked, simply because there are a lot of hands that can beat JJ. Even if the guy had something like A2, he could easily outdraw you.
Either way, you didn't make a bad play, you just got unlucky