Progress bar calculation on document.body.clientWidth