Fixed a bug for AMD/requirejs compatibility

This fixes the issue listed here:

https://github.com/ajacksified/Mediator.js/issues/7