Improvement: programme node should be expanded when tree first rendered.
Improvement: restructure HTML of rendered tree such that the text of each node is always an anchor. Build class attribute consistently.
Experiment with caching class names before tree is constructed and re-applying class names after.