2D trees with JavaScript, just because