Fixes to web-animations.js for Firefox/Chrome differences.

Merge https://github.com/web-animations/web-animations-js/pull/364 first!