Callback oriented staging for d3