Implemented require.js optimization.