Remove the misleadingly named domReady() function, and put its code