TreeView implemented with vanilla JavaScript