javascript magic (dynamic case conversion of city input