Javascript Loop Through Array From Asyncio Timeout