A basic Javascript implementation of the cluster analysis algorithm.