Added function to window object

Function viewCookies added to window object.
Adjusted spaces to 2

Changed spaces from 4 to 2
Merge branch 'master' into gh-pages