Get rid deprecated .live() function

The .live() function has been deprecated since jQuery 1.7. The .on() function should be used instead.