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

For better performance, and another tiny change.