I think this JS can be moved to `app/assets/javascripts/form.js` and remove this `application.js` letting the rails create this file.