Community detection in graphs and complex networks, in JavaScript