var leads_required = parseInt(Globals.leads_required); var cents_required = parseInt(Globals.cents_required); var redirect_url=Globals.redirect_url; var CPABuildOffersComplete = function(completions){ currentLeads = 0; currentCents = 0; for (let i = 0; i