Well, the outcome was pretty much just bad luck - but you could have possibly taken this pot down, and also made more money in the long run, by playing this differently.
- raise (at least min-raise) the flop
- bet bigger on the turn; you have the full but you're showing trip jacks. If he has a jack he'll raise you, if he doesn't he'll probably fold here.
Don't slowplay little sets... bad idea, makes you less money, costs you more pots.