javascript library made for fun: asynchronous loops