Use let instead of var
Fix redeclaration error
Always use curly brackets
Curly == true in .jshintrc