var TwitterSearch       = require('./twitter-search'),
    FacebookSearch      = require('./facebook-search'),
    GoogleNewsSearch    = require('./google-news-search.js');

function Collectivity(keywords, fbKeys, twitterKeys) {

    this.aggregate = function(addLinksCb, saveKeywordsCb, numPosts) {

        var twitterSearcher     = new TwitterSearch(keywords.twitter, twitterKeys),
            facebookSearcher    = new FacebookSearch(keywords.facebook, fbKeys),
            googleNewsSearcher  = new GoogleNewsSearch(keywords.googleNews);


        twitterSearcher.getTweets(addLinksCb, saveKeywordsCb, numPosts);
        facebookSearcher.getFbResults(addLinksCb, saveKeywordsCb, numPosts);
        googleNewsSearcher.getNews(addLinksCb, saveKeywordsCb, numPosts);
    };
}

module.exports = Collectivity;
@@ -167,24 +167,20 @@
 .js');%0A%0A
-function
+%0Avar
  Collect
@@ -184,16 +184,27 @@
 ectivity
+ = function
 (keyword
@@ -233,17 +233,16 @@
 ) %7B%0A
-%0A
     this
 .agg
@@ -237,16 +237,126 @@
     this
+.keywords = keywords;%0A    this.fbKeys = fbKeys;%0A    this.twitterKeys = twitterKeys;%0A%7D;%0A%0ACollectivity.prototype
 .aggrega
@@ -410,20 +410,16 @@
 sts) %7B%0A%0A
-    
     var 
@@ -454,24 +454,29 @@
 itterSearch(
+this.
 keywords.twi
@@ -481,16 +481,21 @@
 witter, 
+this.
 twitterK
@@ -496,28 +496,24 @@
 itterKeys),%0A
-    
         face
@@ -545,24 +545,29 @@
 ebookSearch(
+this.
 keywords.fac
@@ -573,16 +573,21 @@
 cebook, 
+this.
 fbKeys),
@@ -591,28 +591,24 @@
 s),%0A        
-   
- 
 googleNewsSe
@@ -638,16 +638,21 @@
 sSearch(
+this.
 keywords
@@ -667,20 +667,16 @@
 ews);%0A%0A%0A
-    
     twit
@@ -736,28 +736,24 @@
 Posts);%0A    
-  
-  
 facebookSear
@@ -809,20 +809,16 @@
 Posts);%0A
-    
     goog
@@ -883,16 +883,11 @@
 s);%0A
-    
 %7D;%0A
-%7D
 %0A%0Amo

change class pattern for collectivity.js