phrases.forEach(function (phrase){
const currency = phrase.match(/Gem|Gold|Defender Medal/i).toString()
element.innerHTML const replacement = element.innerHTMLphrase.replace(currencyRegex, currencyIcons[currency] + " $2$3") element.innerHTML = element.innerHTML.replace(phrase, replacement)
})
})