Python Insert Variable Into Regex Javascript Function How To Use