code: public function getJS()
      {
          // Strip out externals
          $js = array();
          $jsExt = array();
  
          foreach ($this->js as $jsItem) {
              if ($this->isExternal($jsItem)) {
                  $jsExt[] = $jsItem;
              } else {
                  $js[] = $jsItem;
              }
          }
  
          return array_merge($this->build($js, 'js'), $jsExt);
      }
docs: /*
  Public: Get js files
  
  Returns array of js files paths