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