tidy JS, make JSHint happier, implemented clustering coefficient