Javascript Return From Asynchronous Programming Advantages