We could think that John is the jealous one, but i think Bob is more jealous because he is so insecure. He is afraid of John can find someone better than him, he hates the waitress who always smile to John at restaurant. He knows John is handsome and hates everyone does.
I headcanon that John didn’t have great parents either(considering a certain comics scene….) so him punching Bob’s abusive dad like this has two reasons. One, it’s for Bob. Two, he never got to deck HIS dad like this so he’s getting it out now.