Replaced live() with on() as it is deprecated.

jQuery's live() is deprecated. Replaced live() with on()