Code seperation for JavaScript

Front end code in js.js
D3 in viz.js