fix "setting multiple cookies fails" bug

setting multiple cookies used to fail due to 2 typos in the code

```javascript
res.setCookie('x', '1');
res.setCookie('y', '2');
```