Fixing strict mode alerts.
Refactoring App class to use ES6