cleaned up the color-changing JS a bit

here's a quick stab at a clean up for the color changer