Python Replace Text With Regex In Javascript Example