javascript cleanup; make main.html show 5 column at wide and 4 column at smaller widths