Fixed issue with Browser Specific AnimationFrame code