(html) changing checkbox state depending on variable boolean

uii, I did look at it in the last 20 min and it appears to me that the arduino IoT is kind of a different world. Because the rest of my code is already running i would like to stick to the manual approach of using the normal arduino IDE.
Like i said adjusting the presented code in the posted link would be superb.
Still thank you though.