remove some dependency on jquery and d3