Use .prop instead of wrong .attr to toggle checkbox

Fixes #304