Fix Progress bar width animating issue / Clean up js