Follow the scroll: update "active" entry in the sidebar

This is part two of #52