tried to get progress bar updating with ajax, failed