fix now function (Date.now wrapper)