fixed ajax problem by deleting outside jquery script from application.html.erb file