progress percentage updates with AJAX, progress bar messed up, works on refresh tho