toc.js: first commit

Add JavaScript and HTML sources, and write up a readme.