Use Date.now() instead of (new Date()).getTime()