added js code to have TOC reflect current entries, both presence and sort sequence; added 'collapse' code to collapse/expand entry note text