I have DOM element in array
this.object = \"color1 text1
You should use jquery and then you can write it like this:
$('.color').html('updated text')