Built if and else if statements in inline javascript for colors