Fork of Mike Bostock's stack.js to fit my needs