First draft of the node version of TimeStats