Use dot notation in models
Delete trailing whitespaces
Add missing semicolons
Use strict comparators
Remove extra comma and unnecessary semicolons
Fix  is already defined errors
Remove global for variables