public function addScript(string $script, $depends = null)
    {
        $script = $this->stripSuffix($script, ".min", ".js");
        $this->scripts[$script] = array("path" => $script, "depends" => $depends);
        return $this;
    }