title: Javascript / convert CSS style string into JS object
body: <p>We'd like to convert a CSS style entered as string into a JS object.</p>
  
  <p>E.g.,  </p>
  
  <pre><code> var input = " border:solid 1px; color:red ";
  </code></pre>
  
  <p>expected JS object :</p>
  
  <pre><code> {
      border:"solid 1px",
      color:"red"
   }
  </code></pre>
  
  <p>Of course the number of style entries is unlimited as well as the names of style (border, color, font, z-index, etc...). Thx.</p>