結果 : javascript execute function synchronously