In DG.color, gather variable declarations to top of function, move function declared in loop to the top, and fix a Crockford triple-equals violation.
In DG.color, gather variable declarations to top of function, move function declared in loop to the top, and fix a Crockford triple-equals violation.

concord-consortium/codap,concord-consortium/codap,concord-consortium/codap,concord-consortium/codap,concord-consortium/codap