Changed calls to deprecated jQuery.live() to jQuery.on().

I updated the calls to jQuery.live with jQuery.on since live is deprecated and was removed in jQuery 1.9+. (closed last request because it was binding the handler to the wrong element)