public function evaluateScript($script) {
      $script = preg_replace('/^return\s+/', '', $script);

      $script = $this->fixSelfExecutingFunction($script);

      return $this->browser->evaluate($script);
  }