I always forget to set up js-mode correctly for auto-complete mode so I added this reminder in my startup:
(unless (file-exists-p
(concat (car (ac-dictionary-directories)) "/js-mode"))
(display-warning :emergency "auto-complete not enabled for js-mode"))