Javascript Replace All Occurrences Of A Character In A String