Adding a method to get svg elements from d3 features