public function addScript($src, $async = false, $bottom = false)
    {
        // Build the script element
        $script = $this->getHTMLFactory()->buildScript($src, $async);

        // Choose to append to head or to bottom scripts
        if ($bottom) {
            $this->addToBottomScripts($script);
        } else {
            $this->appendToHead($script);
        }

        // Return the script element
        return $script;
    }