This file gets the document TEXT and POSTS it here [url removed, login to view] (doesn't work without post data).
The JSON should then be used to replace text with a style (found in "underline_style" => "text-decoration: underline") and the link from the "link" value.
The replace script MUST be based on this code [url removed, login to view] this project has taken great care in it's approach to what it can and cannot replace in the DOM - you will see some of the scenarios in the read me.
Finally an optional pop up box should appear from the "popup_html" field. This is to be styles like the attached image [url removed, login to view]