Modularize with require.js