use js2-mode for javascript