A simple Quadtree in Javascript