modified form submit JS