Create form.js

javascript for signup form