getAnimation and RAF callback ID checks added