Typeerror String.prototype.replaceall Called With A Non Global Regexp Argument