title: Function to convert timestamp to human date in javascript
body: <p>How to convert this timestamp <code>1382086394000</code> to <code>2013-10-18 08:53:14</code> using a function in javascript? Currently I have this function:</p>
  
  <pre><code>function cleanDate(d) {return new Date(+d.replace(/\/Date\((\d+)\)\//, '$1'));}
  </code></pre>