Changed calls to jQuery.live to jQuery.on to be comatible with jQuery 1.9+