Use jQuery.fn.prop to set a property of an element (instead of jQuery.fn.attr)

It's deprecated and triggers a note since `jquery.migration`