factored out setupSnippetWizards() in tutorial/main.js.
added a hidden TOC to tutorial, accessible via #toc.