結果 : make synchronous api call javascript