Update fps.js

Version 2.
Deprecated hard coded average and update frame calculations based on an existing web page content.