js modularization