Creating a Table of Contents in JavaScript

A Pen by blustemy