Moved tweeting logic to own tweet.js