@jiangcaiyang the error you posted points to client-side code. The code you posted is pretty clearly server-side.
[nodebb-script-pokemon-twitch] Twitch plays Pokemon, on your forum!
Create a new HTML widget and paste the following code:
Now you can watch twitch play pokemon on your sidebar woohoo:)
I beat you to it
ahaha awesome. yeah that thing can be addictive