making quadtree.js an independant module