Fix deprecated use of .attr for checkboxes for JQuery 1.9