Binary Search Tree implementation in Javascript.