Decouple the form submit javascript from the form input fields.