title: Javascript string to Guid
body: <p>in javascript, what is the easiest way to convert this string</p>
  
  <pre><code>798205486e954fa880a0b366e6725f71
  </code></pre>
  
  <p>to GUID format like this</p>
  
  <pre><code>79820548-6e95-4fa8-80a0-b366e6725f71
  </code></pre>
  
  <p>this is the messy way I do it :) im looking for the cleanest way</p>
  
  <pre><code>var employeeId = shift.employee.id.substring(0, 8) + "-" + shift.employee.id.substring(8, 12)
                      + "-" + shift.employee.id.substring(12, 16) + "-" + shift.employee.id.substring(16, 20) + "-" + shift.employee.id.substring(20, 32);
  </code></pre>