MDL-37844 SCORM: fix js error and highlight selected node in TOC.