private function getJavaScriptContent($path)
    {
        if ($this->isExternalJavaScriptFile($path)) {
            $fileData = $this->getRequestHandler()->getContent($path);
        } else {
            $fileData = '';
            if (file_exists($path)) {
                $fileData = file_get_contents($path);
            }
        }

        return "<script type=\"text/javascript\">\n" . $fileData . "</script>";
    }