Add some extra style checks to jshint and fix them in the files

Reordering the gulp pipeline to have jscs run before replacing `var` with `let` seems to fix the problem. Want me to commit that?