Added missing semicolons
Fixed unused, undefined or undeclared variables
Fixed scoping in style update
Logging to console in Angular way
Strict mode