fixed issue #57 where attribute setters were not working - this has yet to be tested in IE!