Quick hack to get XHR working again under modern browsers.