Changed deprecated jQuery .live to .on in rails.js.

Fixed errors when using jQuery 1.9+ in rails.js. Updated deprecated .live to .on.