A Javascript Quad-tree implementation with nearest neighbour queries.