結果 : javascript wait for async function to finish in non async function