Prefer prop instead of attr for jQuery >= 1.9