Can anyone help me by telling me what the Javascript version of the css below would be I'm trying to change the background colour every two seconds. 
.bridge > .alarm{
background-color:#CC0000;
}

.bridge > .alarm{
background-color:#CC0000;
}