serve the d3 js properly and make the svg chart width responsive