Web animation basic usage script working for current web-animations-js

Modifying the example scripts in the Web Animations documentation to make it work for the current web-animations.min.js from https://github.com/web-animations/web-animations-js