Placed colors in an associative array. Reorganized javascript.