revert xhr require to global