jQuery 1.9 compatibility, use .prop('checked')

jQuery 1.9 uses .prop instead of .attr for checking the property.

http://jquery.com/upgrade-guide/1.9/