How to Replace all Occurrences of a String in Javascript