logging jqXHR on ajax call fails