結果 : make async call synchronous javascript