add framework code for YUI application