Add explanatory comment to d3 code