Fixes global namespace leak

`event` and `marketplace` variables were leaked to global namespace
Merge pull request #32 from vgrichina/patch-1

Fixes global namespace leak