結果 : execute function synchronously javascript