fixed tok stuff and added toc js addins