set colors for map
separating js functions