BST with javascript..