Add JS TreeNode class