refactor JavaScripts to use jQuery.on instead of ancient .live