Fixes event dispatching for CommonJS

Fixes #180.
Fixes #181.
Closes #181.

I would've updated the instructions.md doc but there isn't any reason to as the resolution for Issue #182 [which I'll send next] will eliminate the need to add special config values for AMD and/or CommonJS altogether.