Changed Jquery live() to on() for Jquery > 1.8