snapshot
moves .cookie.json to document.ready because the scope was off
snapshot