Clean up XMLHttpRequest detection