I unsuccessfully tried to convert this script from observable notebook to vanilla JS. In particular, I couldn’t figure out the equivelent of a generator. Sure I can for and while loops in vanilla JS, but when executed it wouldnt’ show any results until the script finishes execution, which is never.