Polyfill, proposed spec and wrapper code for measuring FPS on the web