Tweaks JS for new higlightedRoot/Triad code