結果 : make sync function async javascript