Change XHR shim to only try to calculate what ActiveX object to use once on 'shimming'. Also fails now with a TypeError instead of slilently