Having AA pre-flop on the bubble is a tricky situation. I don't think you played the hand wrong. He would try to push you out of the hand with any jack there and was lucky to flop two pair. You should have probably raised more pre-flop to try to get everyone to fold to win the blinds.