Cleaning up TOC and index output HTML