Fixed quadtree
First fully running script (see test.js) that duplicates itself