JavaScript Modularization: general