use js-mode in emacs2 and js2-mode in emacs24