Changed {request,cancel}AnimationFrame functions
Fixed small bug in core