Change background color by jquery

Same behaviour, more structured code.
Red:_
Green:_
Blue:_