modified:   CandyBox.js