setInterval Replaced with requestAnimationframe & code clean up

Addition of RequestAnimationframe Polyfill with setInterval fallback.
Replacement of $.each loops with for(). dataKey variable created.