Tiny binary search tree implementation in JavaScript (does not balance automatically)