clickedBar js function allows you to move progress bar whenever