Added javascript to submit the form