Adding responsiveness to d3