javascript library for writing async loops in a cleaner way