Remove the CSS animation from the extra code.
From this:
$progbar.css({'width':0, 'height':bar_height,
'position':'fixed', 'bottom':0, 'background':bar_color,
'-webkit-transition':'.5s width',
'transition':'.5s width'});
To this:
$progbar.css({'width':0, 'height':bar_height,
'position':'fixed', 'bottom':0, 'background':bar_color, });
You could also use local storage to set the start width (instead of 0, and leave the animation in).