Address deprecation of jquery live

As per http://api.jquery.com/live/, .live() has been removed as of 1.9,
below is the relevant code from the above link.

```
Rewriting the .live() method in terms of its successors is
straightforward; these are templates for equivalent calls for all three
event attachment methods:

$(selector).live(events, data, handler);                // jQuery 1.3+
$(document).delegate(selector, events, data, handler);  // jQuery 1.4.
$(document).on(events, selector, data, handler);        // jQuery 1.7+
```