結果 : how to call async method synchronously javascript