JS clock with dynamic hex-colored background