A d3js cookie progress bar