Create XHRfactory.js