require changed xhr.js