// The article's own script: related stories from the site's own address.fetch('/api/related.json').then(function (r) { return r.json(); }).then(function (j) { var more = document.querySelector('.more h2'); if (more) more.textContent = 'More to read (' + j.stories.length + ')'; mine();});