Javascript: d3 on console