A simple example of using a PubSub pattern in a Require.js application.