The current implementation on `master` initializes things inside the module definition. I can see that you are preserving that behavior here, but would you mind moving the initialization code to the `requirejs` callback below? (The extension of the prototype and the definition of `messageHandlerMapping` doesn't need to wait for the `load` event and can stay put.) This will better separate module definition and module usage (although practically speaking, it will behave identically).