I am looking for a simple way to move and replace some data with javascript. Here's an example... I always have 2 variables. Each has a word, followed by another word inside `<p>` tags, like this...  

`x="Hello<p>World</p>"` and `y="Goodbye<p>People</p>"`  

Step 1) I no longer need the data and the `<p>` tags in the x variable. Strip that from the variable so it becomes `x="Hello"`  

Step 2) I need to swap the x variable with the first part of the y variable. So the end result will be...  

`x="Goodbye"` and `y="Hello<p>People</p>"`