Moving styling from javascript DOM elements to CSS, plus extra styling