Here is a K.I.S.S Version of using this progress bar I've been using lately... (KISS Stands for "Keep It Simple Stupid"... I think its an American thing so figured I better clarify:) Hopefully it helps some people out, I think its pretty straight forward, if not, feel free to ask questions...
ui html panel("<html><body><span variable=\"#kissprogress\" fillwith=\"innerhtml\"></span></body></html>", 100)
set(#kisslooptotal, 57, "Global")
set(#kissloopcount, 0, "Global")
loop(#kisslooptotal) {
increment(#kissloopcount)
wait(0.10)
set(#kissprogres