Show stream on/off on HTML page

How are you generating your token?