Add support for CommonJS environments