let progressbar = document.getElementById('progress'); let progresslabel = document.getElementById('progresslabel'); progressbar.max = goalAmount; progressbar.value = currentAmount; progresslabel.innerHTML = currentAmount.toLocaleString('en-US', { style: 'currency', currency: 'USD', maximumFractionDigits: 0, }) + ' of ' + goalAmount.toLocaleString('en-US', { style: 'currency', currency: 'USD', maximumFractionDigits: 0, }) + ' goal';