imageNode = document.getElementById("imageNode") const currentHostLocation = window.location.origin fetch(`${currentHostLocation}/xkcd?format=json`).then(response => response.json()).then(data => { imageNode.title = data["alt"] })