window.ready to document.ready