CommonJS implementation