[bugfix][xs]: forgot replace is not replaceAll in js.