requirejs

requirejs.config({
    baseUrl: '/js',
    paths: {
        d3:'vendors/d3/d3',
        nvd3: 'vendors/nvd3/build/nv.d3',
    },
    shim:{
        d3: { exports: 'd3' },
        nvd3: {
          exports: 'nv',
          deps: ['d3']
        }
    }
});