use flexbox to replace height/width calculations
dont set bg colour using javascript
method to create div with multiple classes