Manipulating message through DOM