JSONP and test fixes causing fails in IE

Made tests tolerant to using JSONP polling instead of XHR polling. Initializing `this.query` with an empty object in the constructor if it doesn't exist to avoid errors. Added a hack to go around the fact that old IE doesn't support `script.onerror`.