Fix #10 waitUntilDocReady should not wait if document.readyState is complete