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)

Oh, I see.  Go ahead and indent it, but please use 2 spaces instead of 4 (I know it is inconsistent throughout this file, so if you could make it 2 spaces throughout that would be great).