add QuadTree javascript implementation