Fixed dummy domReady to actually return the document object