This follows the App.* pattern I saw in some backbone google projects and rendr airbnb.  The global Backpain is the naming space to allow sharing things across routes/views without passing references around.  In this example if we require ('backpain/app') we will gain access to the namespace and can access anything inside it like the router or views or models.