Eliminate caro.js

No need for that anymore.
Add safety checks for color