shift js to own file; start d3 visualisation