Draw the color grid from js itself.