Replacing .attr() with .prop()

Fixes #20