Fix js bug when colors were not defined.