Adding code to set modules.exports for CommonJS.