Replace 'new Date().getTime() with Date.now().