One of the easiest ways is probably to use your own HTML5 <progress></progress> bar: <progress></progress> tags.
You put these tags where you want to have a progress bar, and set the max and value properties, where:
max - the maximum value that the progress bar can represent when it is fully loaded (100% in your case)value is the actual value of the perc string in your case.
So you put something like this in your HTML code:
<progress max="100" value="0" id="ft-prog"></progress>
Then you add something like this after statusDom.innerHTML = perc + "% loaded..."; :
document.getElementById("ft-prog").value = perc;
You can create / design more fantastic progress indicators, thereby putting your progress tag in CSS .
You can get useful ideas from here using CSS3 : CSS-Tricks Execution Templates
benka source share