module.exports = (function(){
	
	function collectParams(url) {
		return require("../../helpers").paramsForUrl(url);
	}

	function constructUrl(params) {
	  url = "http://twitter-capsul.herokuapp.com/tweets?";
	  url += "lat" + "=" + params["lat"] + "&";
	  url += "lng" + "=" + params["lng"] + "&";
	  url += "time" + "=" + params["time"];
	  return url;
	}

	function tweetResponse(res) {
		return JSON.parse(res.toString('utf8')).tweets
	}

	return TwitterManager = {
		search: function (url) {
			var qHTTP = require("q-io/http");
			var params = collectParams(url);
			var constructedUrl = constructUrl(params);
			
			return qHTTP.read(constructedUrl)
			.then(tweetResponse, console.error)
		}
	};
})();
@@ -494,45 +494,8 @@
 ) %7B%0A
-%09%09%09var qHTTP = require(%22q-io/http%22);%0A
 %09%09%09v
@@ -576,12 +576,8 @@
 s);%0A
-%09%09%09%0A
 %09%09%09r
@@ -586,19 +586,8 @@
 urn 
-qHTTP.read(
 cons
@@ -600,48 +600,9 @@
 dUrl
-)%0A%09%09%09.then(tweetResponse, console.error)
+;
 %0A%09%09%7D

Refactor twitter controller to respond with a constructed url.