add Date.now function