Changed document to winow in OptionsView.coffee