Update the document title when navigating. Fixes #7.