Python Replace Text With Regex In Javascript Example External