Contents is a javascript generator that a automatically generate table of contents for a given area of content.
Website Demo