modified js-tree