src/Tomahawk/Asset/AssetContainer.php
public function addJs($name, $source, $dependencies = array(), $attributes = array())
    {
        $this->add('js', $name, $source, $dependencies, $attributes);

        return $this;
    }
public function addJs($name, $source, $dependencies = array(), $attributes = array())
    {
        $this->add('js', $name, $source, $dependencies, $attributes);

        return $this;
    }
Add a JavaScript file to the registered assets.

@param  string           $name
@param  string           $source
@param  array            $dependencies
@param  array            $attributes
@return AssetContainerInterface