public static function registerCoreScripts(
        $useZepto = false,
        $minimized = true,
        $position = \CClientScript::POS_END
    ) {
        /** @var CClientScript $cs */
        $cs = \Yii::app()->getClientScript();

        if ($useZepto) {
            $cs->registerScriptFile(static::getAssetsUrl() . '/js/vendor/zepto.js');
        } else {
            $cs->registerCoreScript('jquery');
        }
        // normalizer goes at the head no matter what
        $cs->registerScriptFile(static::getAssetsUrl() . '/js/vendor/custom.modernizr.js', \CClientScript::POS_HEAD);
        $script = $minimized
            ? '/js/foundation.min.js'
            : '/js/foundation/foundation.js';
        $cs->registerScriptFile(static::getAssetsUrl() . $script, $position);
        $cs->registerScript(__CLASS__, '$(document).foundation();');
    }