removing broken d3 code for clarity