replace new Date() with Date.now()