Check is stream is online and change html element

The code looks good to me. What’s the problem?