add some more JSHint options

Add some options to make JSHint a bit more strict (the code changes
are exclusively removals of unused variables discovered through the
"unused" option).