d3js code moved to onAir