Changed attr() to prop(), per jQuery 1.6+

Change-Id: I204bca0052fc3b550d5777cfcce5e1f7b2c22b90