Added JavaScript support to toggle colors