Python Insert Variable Into Regex Javascript Replacechild In Dom