removed line <%= javascript_include_tag "application" %>" from application.html.erb (it was loading jquery from rails)