The installation style does not eliminate all elements of the CSS class. It only redefines those that have been changed. The actual style of the control is a combination of a CSS style and a custom style attribute style. To completely revert to a CSS style, simply remove the style attribute.
$('#foo').removeAttr('style');
EDIT:
Obviously this does not work. In the comments I was told that the following:
$('#foo').writeAttr('style', '');