Update js/CheckboxUI.js

fix and enhance reset function