// The shop's own script: the basket from the shop's own address. fetch('/api/basket.json').then(function (r) { return r.json(); }).then(function (j) { document.getElementById('basket').textContent = 'Basket (' + j.items + ')'; mine(); });