Use jQuery.fn.prop instead of jQuery.fn.attr for manipulating "checked" property