public static function registerScripts(HelperInterface $layout)
    {
        foreach (self::$components as $component) {
            foreach ($component->getScripts() as $script) {
                switch ($script[0]) {
                    case 'headjs' : 
                        $layout->headTags->appendFile($script[1], $script[2], $script[3]);
                        break;
                    case 'headcss' : 
                        $layout->headTags->appendStylesheet($script[1], $script[2], $script[3]);
                        break;
                    case 'footjs' : 
                        $layout->footTags->appendFile($script[1], $script[2], $script[3]);
                        break;
                    case 'footcss' : 
                        $layout->footTags->appendStylesheet($script[1], $script[2], $script[3]);
                        break;
                    case 'script' : 
                        $layout->footTags->appendScript($script[1]);
                        break;
                }
            }
        }
    }