Javascript Loop Through Array From Asynchronous Meaning