Python Insert Variable Into Regex Javascript Example File