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

Date.now() is shown to be faster than (new Date()).getTime()

http://jsperf.com/date-now-vs-new-date-gettime