more flexible d3 html height and width