Replace deprecated jquery 'live' method with 'on'