Fixed minor all round javascript
Adjusts to css files