Update for jQuery 1.9

https://jquery.com/upgrade-guide/1.9/#attr-versus-prop-