/**
  * Add Javascript data to the current page header.
  *
  * @param       string          $js             Javascript data
  * @param       boolean         $async          True to load asynchronous (optional)
  * @param       boolean         $isLink         True when referencing a script, false when inline (optional)
  */
 public function addHeaderJS($js, $async = false, $isLink = true)
 {
     Header::getInstance()->addJS($js, $async, $isLink);
 }
 /**
  * Retrieve the page include HTML.
  *
  * @return      string                          Page include HTML
  */
 public function getHeaderIncludeHTML()
 {
     // Retrieve the header object
     $header = Header::getInstance();
     // Retrieve the meta, CSS and Javascript data
     $meta = $header->getMeta();
     $css = $header->getCSS();
     $js = $header->getJS();
     // Prepare the include HTML
     $includeHTML = '';
     // Include the meta, CSS and Javascript data
     if ($meta) {
         $includeHTML .= implode('', $meta);
     }
     if ($css) {
         $includeHTML .= implode('', $css);
     }
     if ($js) {
         $includeHTML .= implode('', $js);
     }
     // Return the complete page include HTML
     return $includeHTML;
 }