fixing form submission JS