In your game, whenever you want to update the stat bar (for example, initially, at the beginning of the game and any time a stat is changed), put:
*script updateStatBar();
I just mean that anything that uses *script they can’t officially support, since you can put just about anything in there and it may or may not cause problems with the game.
To my understanding, Dan has to actually do some back end work on every game that gets posted to the appstores and everywhere else (I’m not sure what all goes into it, I just know it’s more than copy/paste). So adding JavaScript (which is what *script does) means, at the very best, your game is perpetually stuck at the bottom of the list of games to host, while at the worst, if it’s too difficult to do on the other platforms, HG won’t host it.
If you’re just making a WIP cause you want to and have no plan to ever get it hosted by CoG, it’s one thing, but if you do what to eventually make some money back on your game, it’s best to skip *script.