fixed css and javascript widths matching