Use d3 for element selection