Moved D3 to seperate .js file