There's a [requestAnimationFrame polyfill](https://github.com/gabrielecirulli/2048/blob/master/js/animframe_polyfill.js) already which makes this redundant.