There are a few ways you could do this:
On top of your current class in your .css file, you could add another class in there, and then just switch the HTML elements to belong to that new class. You would need to loop through all the elements with that class name and change them to the new name:
CSS:
.winner
{
background-color: white;
}
.winnerBlue
{
background-color: blue;
}
JavaScript:
var winnerClassElements = document.getElementsByClassName("winner");
for(var i = 0; i < winnerClassElements.length; i++)
{
document.getElementById(winnerClassElements.item(i)).className = "winnerBlue";
}
You could also add some style elements to your HTML file with this JavaScript code:
var editCSS = document.createElement('style')
editCSS.innerHTML = ".winner {background-color: blue;}";
document.body.appendChild(editCSS);
I know you didn't ask for jQuery, but if you already have it included, this is a very simple solution:
$('.winner').css("background-color" , "blue");