Using .prop instead of .attr.

see #402