Fixed kdtree.js