added the js to the create.js.erb file but it did not work