added YUI demo snippets

added YUI demo snippets