changes to the js also added id's to the check boxes as well as added onchange method to each of them