Louvain community detection algorithm for JavaScript - for use with d3.js