JavaScript client-side modularization helper