Fixed issue with domReady