Use Node.js to generate toc