run the trim centering js when the color container is calculated