Update colorbar.js

The check for the scale type was wrong (it had the same condition twice). I here check through the mathematical properties of the different scale types.