In this version, I added a new <div> with the id="totalValueWords" above the progress bar section to display the total value in words. The JavaScript function updateValues() will dynamically update this section with the latest value in words.
<div>
id="totalValueWords"
updateValues()