replace js with YUI