Replaced 'bind' and 'live' events with 'on'