CommonJS implementation for Chrome apps and extensions.