un commented the code in the application.html.erb of js