Callback when the document is ready.