Test formSubmit via pure js