Prevents ReferenceError

Prevents an error in the console:
Uncaught ReferenceError: exports is not defined