Fixed bug in IE <10 due to doc.readyState being assigned "interactive" too soon