Updated .attr to .prop for jQuery v2 consistency