結果 : javascript wait for async method to finish