Use .prop to set checked states instead of attr

By using `.prop` it allows users to do things like:

`$('.checkbox').is(':checked')` or `if($('.checkbox').prop('checked'){ // do something }`

Using `.attr` does not allow users to do either of these things and same for radio buttons.