[JavaScript] Replace uniq char