var TwitSearch = function(){ return { displayResults: function(tweets){ var updateStr = ""; $(tweets).each(function(index, tweet) { updateStr += "
" + tweet.text + "
" + "" + tweet.user + "
" + " "; }); $("#results").html(updateStr); }, searchFailure: function(response){ $("#results").html("