btree2stree.js