public function scriptsByParams(array $params = array())
    {

        if (!isset($params['resources']) or ! isset($params['position'])) {
            return $this;
        }
        if (empty($params['resources'])) {
            return $this;
        }
        $container = $this->container($params['position']);
        foreach ($params['resources'] as $name => $path) {
            $container->add($name, $path);
        }
        return $this;
    }