Replaced .live() with .on() for jQuery 1.7+