more work on the js TOC using the UI services