Python Replace Regex String Javascript Program