YUI().use('node', 'jsonp', 'dump', function(Y) {

  // I REALLY want this work, but I'm still not clear on how to use datasource
  // properly.
  //Y.on('domready', function(e) {

  //    var datasource = new Y.DataSource.Get({
  //      source: 'http://twitter.com/statuses/user_timeline/rockstar_.json?format=json&'
  //    });

  //    datasource.plug({fn: Y.Plugin.DataSourceJSONSchema, cfg: {
  //      schema: {
  //        resultFields: ["text"],
  //      }
  //    }});

  //    datasource.sendRequest("count=1",
  //      callback: {
  //        success: function(e) {
  //          Y.log(Y.dump(e));
  //        },
  //        failure: function(e) {},
  //        complete: function(e) {
  //          Y.log('response completed');
  //        }
  //      }
  //    );

  //});

  var uri = 'http://twitter.com/statuses/user_timeline/rockstar_.json?count=1&callback={callback}';
  Y.jsonp(uri, function(jsonData) {

    var tweet = jsonData[0];
    if (tweet !== undefined) {
      var avatar = Y.one("#twitter-avatar img");
      var content = Y.one("#twitter-content");

      avatar.set('src', tweet.user.profile_image_url);
      content.set('innerHTML', tweet.text);
    }
  });
});
