using better performance timer polyfill