Question: ```
if (stash != 0) {
            for (i=1; i<=6; i++) {
                a[1][i]=a[1][i]/stash;
            }
        }
        else
        {
            NSLog (@"Matrix is Not Invertible");
            UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Matrix is not invertible!" delegate:nil cancelButtonTitle:@"Review Input" otherButtonTitles:nil, nil];
            [alert show];

        }

```

I Want to stop the program if the variable "stash" is zero, but i can't use break since it's not in a loop, i wanted to use return but it says that void should not return any value... what should i do to get this working? thanks for all your help....

Answer: 
Make this line:

```
var wordClone = node.clone(true);

```

into this:

```
var wordClone = node.clone(true)[0]; // now it is HTMLElement

```

You were mixing jQuery objects with native elements. 

Also I'm at a loss of words why you would ***not*** use jQuery when it is available.

You can rewrite most of the things in jQuery:

```
if ($("p:contains('computer forensics is')").length) {
    var highlight = $('<span/>', {
        "class": "higlight",
        style: "background-color:red;"
    });
    var node = $("p:contains('computer forensics is')");
    var wordClone = node.clone(true);
    highlight.append(wordClone);
    node[0].parentNode.replaceChild(highlight, node);
}

```
You can't have paragraphs in spans (invalid HTML()), but assuming you want spans in your paragraphs instead:

JSFiddle: <http://jsfiddle.net/TrueBlueAussie/Kw3tj/2/>
-------------------------------------------------------

```
$(function () {
    var $node = $("p:contains('computer forensics is')");
    if ($node.length) {
        var $highlight = $('<span/>', {
            "class": "highlight", 
            style: "background-color: red"
        });
        $highlight.html($node.html());
        $node.empty().append($highlight);
    }
});

```