Javascript Color Squares

any thoughts on where to begin?