A simple Javascript object to render a tree