removing dependency on jquery plugin, use d3 instead