Copied code for including D3 in AngularJS.