scroll to current anchor when switching examples