Replace Using Regex In Javascript Example