Refactoring

- remove window.alert
- minVersion object requires uppercase first letter
- formatting