Modularized javascript via require.js