a way to submit a form using javascript