Visualization of a BST in JavaScript