Color grid in JS