fix test script
clean up page titles
fix handling of escaped JS
remove use of multi-line comment in example
link to TOC from each example
remove unused element IDs