Replace two uses of static Regex.Replace with readonly static ECMAScript-compatible regexes. This ensures they will work in both native .NET and JSIL compiles.