javascript form submit fix