From http://stackoverflow.com/questions/847185/convert-a-unix-timestamp-to-time-in-javascript
// create a new javascript Date object based on the timestamp