replaced JS with YUI calls