Javascript Class Method Asynchronous Meaning