Update form.js

Fix documentation for $setSubmitted and document $submitted property