Moved whole page TOC generation to server side.