Binary Search Tree implementation in JS.