Another conditional IE8 fix for its lack of Array.prototype.indexOf support; also be consistent with baseURL check to use window.location.href as it differs from document.URL with file protocol on IE; overcome IE-specific restriction with XMLHttpRequest and the file protocol