Jquery update

These are the changes I made to get this working with jquery v1.11.1 on a rails 4.1.1 app.