Making chrome extension work after introduction of require.js in project.