first non-repeated character in javascript