結果 : wait for async function javascript