WIP: adding table of contents via JS
Ensure that we re-use existing Hn id attributes where they exist. Also fixed problem with section numbering
Merge