public function attachScripts()
    {
        if ($this->isScriptsAttached())
            return $this;

        $view = $this->getView();
        $view->inlineScript()
            // we can change target of js files with static_uri_helper config key
            ->appendFile($view->staticsUri('Yima.Widgetator.JS.Jquery.Json'))
            ->appendFile($view->staticsUri('Yima.Widgetator.JS.Jquery.Ajaxq'))
            ->appendFile($view->staticsUri('Yima.Widgetator.JS.Jquery.WidgetAjaxy'))

            /*
            ->appendScript(
                str_replace(
                    '{{url}}',
                    $view->url('yimaWidgetator_restLoadWidget'),
                    file_get_contents(__DIR__.DS.'WidgetAjaxy.js')
                )
            )
            */
        ;

        $this->isScriptAttached = true;

        return $this;
    }