If you are going to go that simple, then why even pass
function formatCurrency on the main page, you can pass the whole function back with the document.body.appendChild method.
Then instead of 628 bytes, you'll have just 100 or so. Then make the script loader a re-usable function for other data on the page.
Then instead of 628 bytes, you'll have just 100 or so. Then make the script loader a re-usable function for other data on the page.