Using  in place of window in app.js