Generate a Table of Contents for HTML files