public function js($path, $plugin = false, $appendTime = true, array $attributes = [])
    {
        $src = $this->getUrl($path, $plugin, $appendTime);

        return '<script type="text/javascript" src="' . $src . '"' . $this->_renderAttributes($attributes) . '></script>';
    }
public function js($path, $plugin = false, $appendTime = true, array $attributes = [])
    {
        $src = $this->getUrl($path, $plugin, $appendTime);

        return '<script type="text/javascript" src="' . $src . '"' . $this->_renderAttributes($attributes) . '></script>';
    }
public function js ( $ path , $ plugin = false , $ appendTime = true , array $ attributes = [ ] ) { $ src = $ this -> getUrl ( $ path , $ plugin , $ appendTime ) ; return '<script type="text/javascript" src="' . $ src . '"' . $ this -> _renderAttributes ( $ attributes ) . '></script>' ; }
Output a script tag for a specific js file and optionally
append a last modified timestamp to clear the browser cache.

@param string $path The path to the css file relative to the app or plugin webroot.
@param bool|string $plugin Either false or the name of a plugin.
@param bool $appendTime Whether to append a last modified timestamp to the url.
@param array $attributes Additional html attributes to render on the script tag.
@return string
Output a script tag for a specific js file and optionally append a last modified timestamp to clear the browser cache .