js adjustment for progress