Here's the JS side of the new colorpicker.