An implementation of latent Dirichlet allocation in javascript