Detect an AJAX request