modularize with require.js