added comments to cookies.js