BUG: update deprecated 'live' jquery to 'on'

'live' has been deprecated since jquery v 1.7.0, and has been removed in the lastest 2 versions of jquery. 

At the moment, using this javascript on the frontend means having to use an older version of jQuery.