https://github.com/madams1/density.js