changed the index.js.erb