Changed window.app.* to app.* to match the example code.

Changed window.app.* to app.* to match the example code.