I guess this is the JavaScriptey way to do it, but I'd rather see explicit conversions such as:

```
    href += "?" + params.toString();
```

Same comment in previous function.