Replaced deprecated jQuery 1.9.x live() function with on().