A Javascript component that creates a collapsible tree