title: parse cookie string with javascript and use the data to pull in html
body: <p>Here's my situation. I have a project where my back end .Net team will be passing me a cookie such as:</p>
  
  <pre><code>COOKIE=ID=1&amp;NAME=Foo&amp;AGE=30&amp;EMPLOYED=Y&amp;ACTIVE=N
  </code></pre>
  
  <p>Then I need to parse this data, and set up conditionals per the data for what HTML I want to pull into my page. Basically fill in empty divs with HTML that would be mapped to what the string values declare.</p>
  
  <p>Has anyone ever worked on something like this? My first thought is to split the string, create an array, and then somehow parse out the values. Then map them to individual unique HTML files.</p>
  
  <p>I appreciate any help! I've worked with cookies before, but never something like this.</p>