requirejs([
    'Application/ApplicationController',
    'services/state',
    '{{baseLibrary}}'
], function (ApplicationController, stateRegistry, {{baseLibraryVar}}) {

    'use strict';

    {{baseLibraryReady}}(function () {
        // Initialize the Application controller
        var appController = new ApplicationController();

        // Listen to the state change event
        stateRegistry.on('change', appController.delegateState, appController);

        // Call parse() to make the state registry read the address value
        stateRegistry.parse();
    });
});

@@ -469,70 +469,380 @@
  // 
-Call parse() to make the
+Listen to the unknown state that is fired whenever a URL%0A        // does not match any state%0A       
  state
- r
+R
 egistry
- read the address value
+.on('unknown', function () %7B%0A            // If there's a current state, simply ignore%0A            // Otherwise transition to the default state%0A            if (!stateRegistry.getCurrent()) %7B%0A                appController.setState();%0A            %7D%0A        %7D);%0A
 %0A   

Add unknown event logic.