Modified CSI. Replace whole element instead than its innerHtml