Might want to only use the var keyword once, when declaring local vars at the start of the function (which is good practice, since they'll be hoisted there anyway).

```
var queryString = url.substring(url.indexOf('?') + 1) || "",
  keyValPairs     = [],
  params           = {};