Add missing semicolon
Pass self
Only define exports when running on Node