[wip] Tree data structure for JavaScript.