Simple node.js BST with class