Uses jQuery's .on method when it's supported

If user has a jQuery version that supports .on then it's used instead of
.live which is deprecated in the jQuery >=1.9.x