function firstScript() { data.textContent += str[i++]; if (i < len) timer = window.setTimeout(firstScript, 50); }