Work around Firefox < 23 not having requestAnimationFrame

Since we don't know exactly what version will be running on the
screens it makes sense to try to avoid this being an issue.
The mozilla docs suggest this snippet as a workaround (I've ignored
the non-firefox browser parts).

Change-Id: I446c877b1c3aa0d265610ba7cd10f11cc165284e