I need to run some functions of a nightmare js instance inside my evaluate function. I run something like the following code, but I get this error that the nightmare is not defi