public function extractExternalJavaScript($html)
    {
        $matches = array();

        preg_match_all(
            '!' . $this->getExternalJavaScriptRegex() . '!isU',
            $html, $matches
        );

        $links = $this->createJavaScriptPaths($matches['links']);

        return array('tags' => $matches[0], 'links' => $links);
    }