100% JS k-d tree.