An effective date counter written in node.js