check for document.readyState