replaced all instances of Date.now() to performance.now()