Replaced .live() with .on() method

Replaced .live() with .on() method according to http://api.jquery.com/on in order to ensure the compatibility with jQuery 1.7+