Hash Map: Find First Unique Character JavaScript