Re-factored into class.
Use:
var clusterfck = require('clusterfck');
var kmeans = new clusterfck.kmeans();

var clusters = kmeans.train(colors, 3);
var clusterIndex = kmeans.classify(input);
Updated readme.