Improve reliability of readyState on IE (possible fix for #154)