Code restructuring / cleanup in tweetgrinder.js