Move progress bar with JavaScript