public function printScript()
    {
        foreach ($this->scripts as $key => $options) {
            $src = (is_string($options['src'])) ? $options['src'] : $this->getScriptLink($key);
            if ($options['with_version']) {
                $src = call_user_func_array($this->assetInsertMethod, [$src, $this->assetVersion]);
            }
            echo "<script type='text/javascript' src='$src'></script>\n";
        }
        $this->printInlineScript();
    }