.attr replaced by .prop