changing stles with DOM code example
Example 1: how to change color on js
document.getElementBiId("your id").style.color = "your color";
//it can also be used as:
document.body.style.backgroundColor = "your color";
Example 2: how to change css using javascript
document.getElementById("myText").className = "anyNewClass"