update JS submit form