Fixed bug on javascript unix timestamp conversion