Update kmeans.js