結果 : javascript wait for async function to complete