d3 prototype