Though I believe that the circuit is correct, it does not behave as a flip flop. The failure is likely due to the ideal simulation. Without delay in the logic gate, the jk doesn't work. The top switch is J and the bottom K. The green led is Q and the red is Q-not.