結果 : make async function synchronous javascript