Wrapping in a doc ready.