Create a navigation element based on the contents of the page and automatically update nav targets based on the users scroll position.