Javascript String replaceAll(f,r)
String.prototype.replaceAll = function(f,r) { return this.split(f).join(r); };