function App(viewDiv, twitterScreenName)
{
    var app = this;

    this.view = new View(viewDiv);
    this.view.itemRemoveClicked = function(item) { app.onItemRemoveClicked(item); };

    this.model = new Model();
    this.model.itemsLoaded = function() { app.onItemsLoaded(); };
    this.model.itemRemoved = function(item) { app.onItemRemoved(item); };
    this.model.load(twitterScreenName);
}

App.prototype.onItemsLoaded = function()
{
    this.view.refresh(this.model.items);
};

App.prototype.onItemRemoveClicked = function(item)
{
    this.model.remove(item.name);
};

App.prototype.onItemRemoved = function(item)
{
    this.view.remove(item);
};

function App(viewDiv, twitterScreenName)
{
    var app = this;

    this.view = new View(viewDiv);
    this.view.itemRemoveClicked = function(item) { app.onViewItemRemoveClicked(item); };

    this.model = new Model();
    this.model.itemsLoaded = function() { app.onModelItemsLoaded(); };
    this.model.itemRemoved = function(item) { app.onModelItemRemoved(item); };
    this.model.load(twitterScreenName);
}

App.prototype.onViewItemRemoveClicked = function(item)
{
    this.model.remove(item.name);
};

App.prototype.onModelItemsLoaded = function()
{
    this.view.refresh(this.model.items);
};

App.prototype.onModelItemRemoved = function(item)
{
    this.view.remove(item);
};

Rename and reorder functions in App