Função para converter timestamp para data humana em javascript

Como converter este timestamp1382086394000 para2013-10-18 08:53:14 usando uma função em javascript? Atualmente tenho essa função:

function cleanDate(d) {return new Date(+d.replace(/\/Date\((\d+)\)\//, '$1'));}

questionAnswers(7)

yourAnswerToTheQuestion