YUI refactored to new style