function(exports) and export your class use exports.xxx = xxx;