function handleTickInit(tick) { // each 3 seconds we'll update the billboard Tick.helper.interval(function () { fetch('/next') .then(response => response.text()) .then(data => { console.log(data) next = data.trim() tick.value = next }); }, 3000); }