// Grabs the most recent tweet, formats it, and throws it into a span in #twitter_status
// based on http://static.tumblr.com/thpaaos/ZCdkl306g/twitter.js
function singleTweetCallback(tweets) {
    if (tweets.length < 1) return;
    var username = tweets[0].user.screen_name;
    var status = tweets[0].text.replace(/((https?|s?ftp|ssh)\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/g, function(url) {
        return '<a href="'+url+'">'+url+'</a>';
    }).replace(/\B@([_a-z0-9]+)/ig, function(reply) {
        return reply.charAt(0)+'<a href="http://www.twitter.com/'+reply.substring(1)+'">'+reply.substring(1)+'</a>';
    });
    document.getElementById('twitter_status').innerHTML = '<span>'+status+'</span>';
}