Use +new Date to get the timing, instead of (new Date()).getTime()