Working on jQuery Conversion #251

Better use properties than attributes in this case