fixing references to module, exports, and define