getting rid of nonworking d3 code