Replace .attr with .prop