Replaced live() method with on() method

According to jQuery's docs the live() method is deprecated for jQuery
versions 1.7+ Since I'm using 1.9.1 I needed to change this, otherwise
I would get errors.

See also: http://api.jquery.com/live/