how to replace character in string with javascript