Move toc.js script into a file