Added http to the XHR's. Wont work when using file: