refactoring: exports is the same as this in node.js