Don't wrap XHR, it's not necessary when served via a webserver.