src/Ease/WebPage.php
public function addJavaScript($javaScript, $position = null,
                                  $inDocumentReady = true)
    {
        return $this->addToScriptsStack(($inDocumentReady ? '$' : '@').$javaScript,
                $position);
    }
public function addJavaScript($javaScript, $position = null,
                                  $inDocumentReady = true)
    {
        return $this->addToScriptsStack(($inDocumentReady ? '$' : '@').$javaScript,
                $position);
    }
Vloží javascript do stránky.

@param string $javaScript      JS code
@param string $position        končná pozice: '+','-','0','--',...
@param bool   $inDocumentReady vložit do DocumentReady bloku ?

@return string