Get form to submit data via AJAX call