Changed document to winow in App.coffee