Fix JSHint problems