public and d3.js