Create a table of contents in the generated HTML, using Cheerio.js