Modified Script to perform initial layout before moving items based on
JSON content.  Also added code to replace <p> and </p> tags if content
is modified manually.