responsive method
refactiong main.js code to keep the functions short and to-the-point. Introduced a createSVG method and a map object to store all the d3 related stuff.