modify the javascript to make all the random color valid