Easy button generating when using d3js