modified form submission JS