Switched from window.performance.now() to new Date().getTime()