Fixing CommonJS export to demand global `require`

Fixes #332.