#Why it's bad.
So, the problem with this...
function formatCurrency (data) {
// format germany price
var els = document.querySelectorAll('.price');
for (var i=0; i<els.length; i++) {
var price = parseInt(els[i].innerHTML.replace(/[^0-9]*/,''));
var curr = els[i].getAttribute('data-currency');