jQuery-based HTML table of contents generator