Fixed the code to make it compatible with the new polyfill however the c...

...onstructor of Animation when a function is passed in is not compatible with the one in the specs Please enter the commit message for your changes. Lines starting
pause() is not a method on AnimationTimeline.