Avoid an error when loading in non-Node envs

Otherwise, this reference to `module` causes:

```
ReferenceError: module is not defined
```
Merge pull request #1 from rtlong/patch-1

Avoid an error when loading in non-Node envs