Implement a tree view in js
support folding of tree