Parse, manipulate and render cookies in node.js