.live() is deprecated, using .on(), fixed (v2)

Stof is right, my proposed fix was incorrect. Changed it the way Stof proposed.