Remove d3.js dependency after going back to vanilla JS