title: Convert CSS text to JavaScript object
body: <p>I have the following text as a JavaScript string</p>
  
  <pre><code>.mybox {
   display: block; 
   width: 20px; 
   height: 20px;
   background-color: rgb(204, 204, 204);
   }
  </code></pre>
  
  <p>I want to convert to a JavaScript Object</p>
  
  <pre><code>var mybox = {
   'display': 'block',
   'width': '20px',
   'height': '20px';
   'background-color': 'rgb(204, 204, 204)';
  };
  </code></pre>
  
  <p>Any ideas or already made scripts?</p>