public function setJsSettings($key, $data, $weight = null)
    {
        $asset = array(
            'type' => 'js',
            'weight' => $weight,
            'key' => 'js_settings',
            'merge' => 'js_settings',
            'asset' => array($key => $data)
        );

        $this->asset->set($asset);
    }