check for module.exports for nodejs environent.