moved perf.now polyfill to start