domReady race condition