Update color.js

fixed incorrect comparison