The example show on that page uses the TMI.js library, you’ll need to refer to the TMI.js documentation for help with that