Refactored color selector to use jQuery