Javascript to AJAX submit the form.