Insert dependencies and configure require.js