Added a bug (from before refactoring) where targetFPS (global var) was used in RequestAnimFrame polyfill