Added partial checking as a constructor parameter for CheckBox.js.