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
The parameter names to the custom effect don't match what they actually are, see above comment.