src/Capture.php
public function includeJs($script)
    {
        if ($script instanceof Url) {
            $this->includedJsScripts[] = $script;
        } else {
            $this->includedJsSnippets[] = $script;
        }

        return $this;
    }
public function includeJs($script)
    {
        if ($script instanceof Url) {
            $this->includedJsScripts[] = $script;
        } else {
            $this->includedJsSnippets[] = $script;
        }

        return $this;
    }
public function includeJs ( $ script ) { if ( $ script instanceof Url ) { $ this -> includedJsScripts [ ] = $ script ; } else { $ this -> includedJsSnippets [ ] = $ script ; } return $ this ; }
Adds a JS script or snippet to the screen shot script

@param string|URL $script Script to include

@return Capture
Adds a JS script or snippet to the screen shot script