Refactoring into Require.js architecture for better growth potential.