public function language($langs)
    {
        //force array
        settype($langs, 'array');

        $scripts = '';
        $language = $this->getService('anahita:language');
        $tag = $language->getTag();
        $base = $language->getLanguagePath(ANPATH_ROOT, $tag);

        foreach ($langs as $lang) {
            $path = $base.'/'.$tag.'.'.$lang.'.js';
            if (is_readable($path)) {
                $src = AnService::get('com:application')->getRouter()->getBaseUrl().'/language/'.$tag.'/'.$tag.'.'.$lang.'.js';
                $scripts .= '<script type="text/javascript" src="'.$src.'"></script>'."\n";
            }
        }

        return  $scripts;
    }