Fix bug on Javascript to decode unix timestamp