I guess all you need to do is to multiply the timestamp (which look like unix timestamps) by 1000.
Unix timestamp tracks time as a running total of seconds starting from January 1st, 1970. While javascript timestamps measure milliseconds. So just multiply by 1000 and you should be fine