toc script to post html