reversed all changes and add js include tag at bottom of application.html.erb