Updated tree.js for new rgb interface