Fix JSHint warnings/errors.