Update main.js

updated form