Added function to window object

Function viewCookies added to window object.
![captura de tela 2014-09-06 as 13 09 18](https://cloud.githubusercontent.com/assets/2053643/4175653/2c8d590a-35e0-11e4-89a2-48d0fc7a6c37.png)

Looks like this rewrote a lot of the whitespace in the file.  Could you update the PR to preserve the existing whitespace and just include the changed line?