modules.js: commonJs pattern