Older WebKit workaround for requestAnimationFrame