Changed deprecated live() function to on() to support latest JQuery builds

`live()` function is deprecated in latest JQuery versions. It is replaced with `on` function.