Upload kdtree.js