JS string replaced to regex replace to match all occurences. Not just the first.