progressbar settings
progressbar js function