extracted D3 JS to external file