private function setJavascript(HeadScript $element, array $js = array())
    {
        $jsPath = $this->options->getJs()->getPath();
        if (isset($js["options"])) {
            $element->appendFile($jsPath . "/" . $js["name"], "text/javascript", $js["options"]);
        } else {
            $element->appendFile($jsPath . "/" . $js["name"]);
        }
    }