avoid using module.exports in analysis to make analysis code uniform across browser and node.js.