Add check for Web Animations API and make the test fail if its not present

Managed to make this check able to work by just importing the script file, because it's in a separate file it's probably not possible to cancel the execution of other script tags.