colorarray.js amended