fixed spacing problem in boxes and repeating info in JS