add scroll-spy (also to table of contents template)
ref #4183