Resume compatibility with the latest version 

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