//https://stackoverflow.com/questions/15504921/asynchronous-loop-of-jquery-deferreds-promises?answertab=votes#tab-top
นี่คือเวอร์ชันทั้งหมดของสคริปต์นี้ แสดงเฉพาะเวอร์ชันที่โค้ดมีการเปลี่ยนแปลง