Change checkboxes .attr to .prop

Fix checkbox behaviour.