fix a few JSHint warnings