fixing QuadTree.query()

fixing main.js example implementation