fix #48 timestamp are in milliseconds in javascript