Fix JSHint warnings