Javascript Return From Asynchronous Meaning