Code:
halfCheckedValue, meChecked, nodeChecked
Are declared, but never used anywhere.