Rebased onto web-animations-js polyfill