npm install nested-timeouts
<script src="https://cdn.jsdelivr.net/npm/nested-timeouts/dist/cdn/index.min.js"></script>