Applying Strict Mode and JSLint
Strict Mode: done