Wtf why do I have to set all css in Javascript

Y cant u jus stay same