   
   (add-to-list 'ac-sources 'ac-source-pjs-namespaces-functions)
   (add-to-list 'ac-sources 'ac-source-pjs-local-vars)
-  (add-to-list 'ac-sources 'ac-source-pjs-variable-members)  
+  (add-to-list 'ac-sources 'ac-source-pjs-variable-members)
+  (add-to-list 'ac-sources 'ac-source-pjs-classes)
  
   ;; (add-to-list 'ac-sources 'ac-source-ojs-vars)
   ;; (add-to-list 'ac-sources 'ac-source-ojs-kernel)

  (save-excursion
    (save-match-data
      (let ((match (re-search-backward (format "\\(\\<%s\\>\\)\\(\\.\\)\\(%s\\)?\\=" *js-variable-name* *js-variable-name*) (line-beginning-position) t)))
	(when match
	  (setq *current-pjs-namespace-prefix* (downcase (match-string-no-properties 1)))
	  (1+ (match-beginning 2)))))))


  )

(defun pjs-namespaces-functions-ac-candidates ()
  (let ((functions (list-pjs-namespace-functions *current-pjs-namespace-prefix*))
	(vars      (list-pjs-namespace-variables *current-pjs-namespace-prefix*)))
    (append functions vars)))

(defun pjs-namespaces-functions-ac-document (docstr)
  docstr)
