Check for prefixed versions of requestAnimationFrame

Firefox has `mozRequestAnimationFrame`, while Safari 6.0 and older Chrome uses `webkitRequestAnimationFrame`. This pull request adds a check for the prefixed versions, and uses them if the unprefixed version is not defined. This is enough to get the game working in for me in Firefox 22.0a2 (Aurora).