added javascript logic to output toc json data inside course page, dropping extjs