結果 : wait for async function in sync function javascript