Replace deprecated live() with on()

live() has been removed in jQuery 1.9

Signed-off-by: Thameera Senanayaka <thameera123@gmail.com>