Moves to the beginning of the document.