more trivial JSHint errors fixed