ionFrame(loop); else requestAnimationFrame(() => render(0));
        }

        function update(dt) {
          state.spawnCooldown -= dt;
          const interval = spawnInterval();
          if (state.spawnCooldown <= 0) {
            if (state.words.length < maxWordsOnScreen()) {
              spawnWord();
              state.spawnCooldown += interval;
            } else {
              // Try again shortly if we hit the limit
              state.spawnCooldown = 120;
            }
          }

          