tree.js is a minimal JavaScript library that can create and manipulate tree data structures.
examples