public function getScripts()
    {
        $retVal = '';
        while ( $this->scripts->valid() ) {
            $retVal .= "<script type='text/javascript'>\n{$this->scripts->get()}\n</script>\n";
            $this->scripts->next();
        }
        
        return $retVal;
    }