javascript added to index.html.erb