Configure JSHint to warn about unused variables

...and remove unused variables from test files.