fixed error in formSubmit.js