var PeriodString = 'per month'; var Extra = ''; jQuery.getJSON( "https://app.statuscake.com/Workfloor/PricesMain.php?Type=SUPERIOR&Yearly=", function( data ) { if (data[0].VAT) { Extra = ' (+VAT)'; } jQuery('.SuperiorPricing').html(data[0].CurrencyCode + data[0].Cost + Extra); }); jQuery.getJSON( "https://app.statuscake.com/Workfloor/PricesMain.php?Type=BUSINESS&Yearly=", function( data ) { if (data[0].VAT) { Extra = ' (+VAT)'; } jQuery('.BusinessPricing').html(data[0].CurrencyCode + data[0].Cost + Extra); });