main.js improved color output

showing rectangles for color outputs