So I'm using iMacros and I will use a JS file to play my macro based on a few if statements.

Here's a small sample pseudocode:

```
if (TextContent == "Hello World")
{
    iim.Play("myMacro.iim);
}

```

I'm trying to check if the webpage contains the word "Hello World!".

I heard about the `TextContent` method but I don't know how to use. Is it the proper way to use it? If not then how do you use it properly?

**UPDATE**

I've tried the ones but it's giving me a `reference` error.