Changed references of jQuery from "$" to jQuery 

Now this gem works when there are several js libraries on the project.