move new javascript codes from _form.js to _form.html.erb