Changed deprecated live() function to on() to support latest JQuery builds