Finished first version of form.js