Cleaning up CSS and add JS coloring to diagram color selectors.