Tweak to keep it from polluting the browser's global namespace.

With it setting module and export in the global namespace it was conflicting with other libs in the browser. Example: If socket.io was included after this, socket.io would think it was running in node because of the global declared module and export variables.