assign module.exports for CommonJS factory path