$('badge').set('flickr',{username: 'ydn', 
                         amount: 20,
                         tags: 'hack'},
           {
           onSuccess: function(o) {
                  if(window.console) {console.log(o);}
                  $('results').set('html',o.results[0]);
                  $('badge').adopt($('democode'));
           },
           onRequest: function(script) {
                 console.log("The request is made!"); 
                 $('results').set('html','Loading...');
           }         
});
$('badge').loadFlickrPhotos();