Added JS and AJAX to submit form