Major modularization using require.js