結果 : javascript convert async function to promise