Set title and url #hash from first line of document.

TODO: test on IE.