convert to timestamp of js in json reply