public function writeMerged($mask = '%s')
    {
        $str='';
        foreach ($this->cleanStack($this->getMerged(), 'path') as $entry) {
            $tag_attrs = array(
                'type'=>'text/javascript',
                'src'=>$entry['path']
            );
            $str .= sprintf($mask, Html::writeHtmlTag('script', null, $tag_attrs));
        }
        return $str;
    }