Replaced JS centering code with CSS centering.