title: Javascript: How to emulate browser-cookie implementation?
body: <p>I'm trying to a create a fully functional web proxy using node.js which essentially downloads the webpage and displays it to the client. I'm having a problem implementing cookies though as it's harder than I thought since they have so many rules. </p>
  
  <p>Are there any libraries that have been already made to emulate how a browser handles cookies?</p>