Added percolate code resulting from playing with D3