Updated all date.now() calls to performance.now() for more accurate timing information