tree-chooser.js