changed checkbox.js structure