Changed window to  in app.js