add export as module for CommonJS and CommonJS-like environments