performance.now() instead of new Date().getTime();

+ detection and new Date().getTime() for safari