Terminate all statements with semicolons
Define loop-index var outside loop
Use strict for all functions
Move self-invocation inside closing bracket
Use unique names for catch parameters
Disable for-in check for single-loop
Add explicit loop-index variable
Use explicit blocks
Use === to compare with 0
Strings must use singlequote