remove d3 cruft and fix styles