new Date().getTime() replaced with Date.now()