0.25/0.5$ NL 10 players

Dealt to Borax in EP (JJ)
X raise 2$
Borax call 2$
Y reraise to 6$
X call 4$
Borax call 4$
FLOP (AKQ)
X check
Borax bet 6$
Y raise to 40$ all in
X fold
Borax call 34$ all in
TURN (8)
RIVER (2)
Borax shows (JJ) a pair of J's
Y show (KK) three K's
Y wins pot


My thoughts: From my read I knew he had KK, AA, QQ or maybe AKs
I figured I had:
1 out for royal straight flush (10)
3 outs for a straight (3 other tens)
8 outs for nut flush (remaining s)
+ some very small chance of hitting 2 more J's
= about 4x12= 48% chance to win
if he had AK I get 2 more outs for two remaining J's = 4x14=52%
So I'm close to a coin flip here I would say.
Would you have called this