Changed window.app.* to app.* to match the example code in Example 1

Changed window.app.* to app.* to match the example code for the router example. There were a few other places earlier in the chapter that referred to window.app for the console log. Perhaps those should be changed too.