Update checktree.js