var congress = require('./index');
var $ = require('jquery');

// http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript
function urlParam(name) {
    var match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
    return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}

congress.drawCosponsorGraph(
        urlParam("chamber") || "senate",
        urlParam("congress") || 113,
        urlParam("bills") || 500);

@@ -437,9 +437,9 @@
 %7C 11
-3
+4
 ,%0A  

Default to 114th congress