Update loading-bar.js

Prevent loading bar jump back