Fixing CommonJS export to demand global `require`

Fixing CommonJS export to demand global `require`.

Fixes #332.