Add type description for cookie.js