Made all.js more modular