Tody up javascript
Prevent 'flash of unstyled content'