Fix jshint errors

Naughty, naughty! Someone might have skipped running grunt before checking in, unmodified 'dev' branch had jshint errors.

Can someone else verify that this looks okay to merge before I go ahead with it? I tried updating my fork with a reverse pull request through the web interface, and apparently it shows up as a commit on this PR. That's the only part that worries me. The only real changes are removing variables that are never used.