Abstracted AJAX, made enter key submit the form