(function() {
    var xhr;
    try {
        xhr = new ActiveXObject('Microsoft.XMLHTTP');
    } catch (e) {
        xhr = new XMLHttpRequest();
    }
    xhr.open('GET', '/static/twitter.html');
    xhr.onreadystatechange = function() {
        if (xhr.readyState == 4 &&
            (xhr.status == 200 || xhr.status == 302 || xhr.status == 0)) {
            document.getElementById('tweets').innerHTML = xhr.responseText;
        }
    }
    xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
    xhr.send(null);
})();

