Code Editor : build-ideal-tree.js