fix d3.selectAll to work on only htmlElement for which it was initiated