capture the submitted data for jQuery AJAX errors