Moves all javascript into require.js managed modules.