Bug 1017435 - [window] typo and jshint fix for app_modal_dialog