Python Insert Variable Into Regex Javascript Tester