Workaround for useNativeAnimFrame when browser does not support cancelAnimationFrame

- See: https://groups.google.com/forum/?fromgroups=#!topic/melonjs/tplNCcQTvbM