fix for jquery 1.9

there are other uses of `.attr` that perhaps should be switched to `.prop`, but this is the one that bit me so far.