Python Insert Variable Into Regex Tester Javascript Compiler