Linting fixes.

I've fixed some linting issues that were caught by our closure compiler setup. The code used `char` as a variable in several places. This caused an error since it's considered a reserved word in EcmaScript 3. I also fixed an undeclared variable and a missing semicolon.
Lastly, I added some options to the grunt config so that these types of errors can be caught going forward. I also added the concatenated files to the list of linted files since you can't lint the concatenation templates on their own.