jQuery 1.9 compatibility

jQuery doesn’t support $.fn.live anymore so updated to use
$.fn.on(event, selector, callback)