public function setJs($script, array $options = array())
    {
        $options['type'] = 'js';
        $options['asset'] = $script;

        return $this->asset->set($options);
    }
public function setJs($script, array $options = array())
    {
        $options['type'] = 'js';
        $options['asset'] = $script;

        return $this->asset->set($options);
    }
public function setJs ( $ script , array $ options = array ( ) ) { $ options [ 'type' ] = 'js' ; $ options [ 'asset' ] = $ script ; return $ this -> asset -> set ( $ options ) ; }
Adds a JS on the page
@param string $script
@param array $options
@return bool|array
Adds a JS on the page