use prop() instead of attr()

This factory doesn't work for me unless i change to use prop(), instead of attr().

Could use something like these too, all seem to work
```js
'hidden' in $document
$document.prop
```