use prop() instead of attr()
Merge pull request #1 from dreadjr/master

use prop() instead of attr()