結果 : call function synchronously javascript