remove d3 code
remove cruft and unused libraries