prototype of progressbar using JQuery UI progressbar