Update main.js

change event handle, id of form, and classes