Fixed jQuery form.submit event handling