I think it is something that you should take a look.
When opening the twitch’s homepage, the following file is loaded.
in which, contains the following statement:
Maybe the purpose was to pause the video before closing the document. Setting a string to DOM even handler really does not work in Firefox or Chrome (the event handler will remain null). The correct way is to create an anonymous function and assigns it to the event handler.