Added support for js-mode and js2-mode.