attr to prop
updated demos to current jquery version