var currency = {"code":"USD","value":1,"decimal":2,"symbol":{"left":"$","right":""}};jQuery(document).ready(function(j){function u(p){var d=currency.symbol.left;p*=currency.value;d+=z(Math.round(100*p)/100);d+=currency.symbol.right;return d;}function z(p){var ud=Math.pow(10,currency.decimal),di=currency.decimal+1;p=Math.round(parseFloat(p)*ud)/ud;p=p.toString();if(p.indexOf('.')<0)p+='.';while(p.length-p.indexOf('.')-di)p+='0';return p;}j('[data-price]').each(function(i,s){j(s).text(u(s.dataset.price));});});