No-Library (pure JS), HTML, CSS, JavaScript
wait for all window.setTimeout() tasks to complete, with an optional timeout