Fix java.lang.ClassCastException in requestAnimationFrame
Merge pull request #30 from mseddon/r-a-f-unbreak

Fix java.lang.ClassCastException in requestAnimationFrame