AJAX request data can be seen in browser console upon clicking submit