update app.js and twitter.js to handle array