JavaScript : String.Replace only replaces first occurrence of matched ...

JavaScript : String.Replace only replaces first occurrence of matched ...