Edit in JSFiddle

var TextHighlight;
$(document).ready(function () {

    TextHighlight = new TextHighlighter("content");

$('#search').bind('blur', function () {
    var search = document.getElementById("search").value;

$('#click1').bind('click', function () {

$('#click2').bind('click', function () {
<div id="content" contenteditable>
    Most large cities in the United States historically had morning and afternoon newspapers. 
    As the media evolved and news outlets increased to the point of near oversaturation, 
    most afternoon newspapers were shut down. Morning newspapers have been gradually losing circulation,
    according to reports advanced by the papers themselves. Commonly, 
    news content should contain the "Five Ws" (who, what, when, where, why, and also how) of an event. 
    There should be no questions remaining. 
    Newspapers normally place hard news stories on the first pages, 
    so the most important information is at the beginning. 
    Busy readers can read as little or as much as they desire. 
    Local stations and networks with a set format must take news stories and break them down into pieces, 
    the most important aspects due to time constraints. 
    Cable news channels such as BBC News, Fox News, MSNBC, and CNN, 
    are able to take advantage of a story, sacrificing other, decidedly less important stories, 
    and giving as much detail about breaking news as possible
Search Text: <input type="text" id="search" value=""/>
<button id="click1">Find Next</button>
<button id="click2">Find All</button>

<iframe id="iframe1" src="http://jqfaq.com/AdPage.html" style="width:100%;border:none;" />
    border:1px solid;

External resources loaded into this fiddle: