Update cookies.js

Just fixed an example in the API reference.